		        <div id="settings"> 
		            <form method="POST" action="<?php echo (isset($is_config) && $is_config)?'':site_url('reg/reg3'); ?>"> 
		            <?php foreach ($all_cat as $lev1_cat){ ?>
                <?php if($lev1_cat['cat_name'] != "其他"){ ?>
						<fieldset> 
						    <h4><?php echo $lev1_cat['cat_name']; ?>(<a href="#this" class='check_all'>全选</a>)</h4>
						    	<?php foreach ($lev1_cat['data'] as $lev2_cat){ ?>
						        <div class="settings-checkbox">
							        <label for="id_<?php echo $lev2_cat['id']; ?>">
							        	<input type="checkbox" id="id_<?php echo $lev2_cat['id']; ?>" name="tag[]" value="<?php echo $lev2_cat['id']; ?>" <?php echo (isset($lev2_cat['valid'])&&$lev2_cat['valid'])?'checked':'' ?> />
							        	<span class="tip" title="<?php echo $lev2_cat['cat_name']; ?>"> <?php echo $lev2_cat['cat_name']; ?>
							        	</span>
							        </label>
						        </div> 
						        <?php } ?>
						</fieldset>
            <?php } ?>
					<?php } ?>
					<?php if(isset($is_config) && $is_config){ ?>
						<input type="hidden"  name="ispost" value="1" />
						<input type="submit" class="formbutton" value="保存" />
					<?php }else{ ?>
						<input type="hidden"  name="email" value="<?php echo $email; ?>" />
						<input type="hidden"  name="city" value="<?php echo $city; ?>" />
						<input type="hidden"  name="reg2" value="1" />
		                <input type="submit" class="formbutton" value="下一步" />
		            <?php } ?>
		            </form> 
		        </div><!-- end #settings --> 